package com.zego.wawaji.ui.center.question.bean;

import com.zego.wawaji.base.data.BaseData;

import org.json.JSONArray;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Su on 2018/4/12.
 */
public class QuestionList extends BaseData {
    private List<Question> questionList = new ArrayList<>();

    @Override
    public void parseJson(String jsonStr) {
        JSONArray jsonArray = getJsonArray(jsonStr);
        this.questionList = (List<Question>) getBaseDataList(jsonArray, Question.class);
    }

    public List<Question> getQuestionList() {
        return questionList;
    }
}
